<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="assets/easyUI/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="assets/easyUI/themes/icon.css">
	<script type="text/javascript" src="assets/easyUI/jquery.min.js"></script>
	<script type="text/javascript" src="assets/easyUI/jquery.easyui.min.js"></script>
    <title>用户管理11</title>
    <script type="text/javascript">
    	$(function(){
    		$('#datagrid').datagrid({
				url: '<%=basePath%>servlet/UserServlet?act=list4easyui',
				title:'用户列表',
				striped: false,
				sortName: 'id',
				sortOrder: 'desc',
				idField:'id',
				fit:true,
				pagination:true,
	            rownumbers:true, 
	            remoteSort:true,
	            selectOnCheck:true,
				pageSize: 10,//每页记录数       
	            pageList: [5,10,50,100,1000], //分页记录数数组
				singleSelect:false,
				loadMsg:'正在查询，请稍等...',
				fitColumns: true,
				toolbar:['-',{
					id:'createTask',
					text:'新建',
					iconCls:'icon-add'
					
				},'-',{
					id:'createTask',
					text:'编辑',
					iconCls:'icon-edit'
					
				},'-',{
					id:'createTask',
					text:'删除',
					iconCls:'icon-remove'
					
				}],
				columns:[[
				    {field:'id',title:'编号',width:50,align:'center',checkbox:true},
				    {field:'name',title:'姓名',width:50,align:'center'},
				    {field:'sex',title:'性别',width:50,align:'center'},
				    {field:'email',title:'邮箱',width:50,align:'center'},
				    {field:'address',title:'地址',width:50,align:'center'}
				]]
				
			});
    		
    	});
    </script>
  </head>
  
  <body>
 	<div id="datagrid"></div>
  </body>
</html>
